/* pages/buySubCard/buySubCard.wxss */
@import "@/components/choose-sku/choose-sku.css";

page {
  box-sizing: border-box;
  padding: 0;
  background: #f8f8f8;
}

.nocoupon {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  font-size: 28rpx;
}

.nav {
  padding: 30rpx 0;
    flex: 1;
    box-sizing: border-box;
    border-bottom: 4rpx solid white;
    transition: 0.2s;
    color: #999;
    position: relative;
}

.active {
  color: #333;
}

.active::after {
    content: "";
    width: 40rpx;
    height: 4rpx;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 18rpx;
    left: calc(50% - 20rpx);
}

.list {
  margin: 30rpx;
}

.card_style {
  position: relative;
  width: 100%;
  margin-top: 30rpx;
}

.card_img {
  position: relative;
  width: 100%;
  height: 100%;
}

.card_img image {
  width: 100%;
  /* height: 100%; */
  border-radius: 20rpx;
}

.card_text {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 50rpx;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card_name {
  font-size: 38rpx;
  letter-spacing: 2rpx;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.card_time {
  font-size: 24rpx;
}

.headline {
  padding: 20rpx 0;
  color: #333;
  font-size: 30rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.headline::before {
  content: "";
  background-color: #ccc;
  position: absolute;
  top: 40rpx;
  left: 29%;
  width: 70rpx;
  height: 2rpx;
  z-index: 1;
}

.headline::after {
  content: "";
  background-color: #ccc;
  position: absolute;
  top: 40rpx;
  right: 29%;
  width: 70rpx;
  height: 2rpx;
  z-index: 1;
}

.details_list {
  display: flex;
  font-size: 26rpx;
  padding: 10rpx 0;
}

.details_left {
  color: #999;
  white-space: nowrap;
}

.details_right {
  color: #666;
  line-height: 36rpx;
}

.buy_now {
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(to right, rgba(var(--primary-rgb-color), 0.7), var(--primary-color));
  border-radius: 50rpx;
  margin: 0 2%;
  position: fixed;
  bottom: 20rpx;
  left: 0;
  width: 96%;
  text-align: center;
  font-size: 34rpx;
  letter-spacing: 2rpx;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy_no {
  box-sizing: border-box;
  color: #333;
  background: #999;
  border-radius: 50rpx;
  margin: 0 2%;
  padding: 20rpx 0;
  position: fixed;
  bottom: 20rpx;
  left: 0;
  width: 96%;
  text-align: center;
}

.goods-box {
  margin: 30rpx;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.goods-list {
  border-radius: 10rpx;
  background-color: white;
  margin-bottom: 25rpx;
  display: flex;
  flex-direction: row;
  width: 100%;
  position: relative;
}

.goods_image {
  width: 200rpx;
  height: 200rpx;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.goods_image>image {
  width: 100%;
  max-height: 100%;
  border-top-left-radius: 15rpx;
  border-bottom-left-radius: 15rpx;
}

.goods-name {
  line-height: 26rpx;
  width: 100%;
  font-size: 26rpx;
  color: #555;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 2rpx;
}

.goods_price {
  font-size: 28rpx;
  color: red;
  line-height: 30rpx;
  box-sizing: border-box;
}

.goods_disabled {
  position: absolute;
  top: 0;
  left: 0;
  width: 200rpx;
  height: 46rpx;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 24rpx;
  line-height: 46rpx;
  text-align: center;
  border-top-left-radius: 15rpx;
}

.bottom {
  width: 100%;
  height: 130rpx;
}

.goods_sku {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24rpx;
  background-color: #f8f8f8;
  width: 240rpx;
  padding: 10rpx;
  line-height: 30rpx;
  border-radius: 6rpx;
}

.goods_sku>text {
  width: 210rpx;
  color: #999;
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  align-content: center;
}

.goods_sku>image {
  width: 10rpx;
  height: 18rpx;
  margin: 0 6rpx;
  position: relative;
  transform: rotateZ(90deg);
}

.goods_bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20rpx;
  box-sizing: border-box;
}

.change {
  width: 180rpx;
  height: 44rpx;
}

.change-num-btn {
  font-size: 32rpx;
}

.num {
  width: 48%;
  font-size: 24rpx;
}

.num>input {
  font-size: 24rpx;
}

.goods_num {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*以下是转成uniapp后将style改成class*/